package com.store.utils;

public class ThreadLocalUtil<T> {
    private static ThreadLocal local = new ThreadLocal<>();

    public static <T> void setLocal(T t){
        local.set(t);
    }
    public static <T> T getLocal(){
        return (T)local.get();
    }
    public static void remove(){
        local.remove();
    }
}
